package com.book.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.book.model.dto.*;
import com.book.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.model.vo.UserVO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 账号表 服务类
 * </p>
 *
 * @author auto
 * @since 2025-04-02 06:38:55
 */
public interface UserService extends IService<User> {

    User loginByUserNameAndPassword(AdminLoginDTO dto);

    User loginByWx(WxLoginDTO dto);

    UserVO getUserById(String id);

    boolean bindPhone(BindPhoneDTO dto);

    boolean sendCode(String phone);

    boolean pointsGive(PointsGiveDTO dto);


    Page<User> getListByPage(UserQueryPageDTO dto);

    boolean resetPassword(AdminResetDTO dto);

    User addOrUpdateUser(User user);

}
